<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
	String username=request.getParameter("username");
	String cookiename=(String) application.getAttribute("cookiename");
	String appname=(String) application.getAttribute("appname");
	Cookie c=new Cookie(cookiename+"-admin",username);
	c.setMaxAge(Integer.MAX_VALUE);
	c.setPath("/"+appname+"/");
	response.addCookie(c);
	response.sendRedirect("./index.jsp");
%>
